	<?php echo CHtml::form('','post',array("data-ajax"=>"false","id"=>"namecardForm",'class'=>'form-horizontal','enctype'=>'multipart/form-data')); ?>
<fieldset  class='div div-plain'>
	<h2 class='div'>
		更新信息
	</h2>

	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "title") ?></label>
		<div class="controls">
		<?php echo CHtml::activeTextField($member,"title");?>
		<?php Utils::displayErr($member,"title");?>
		</div>
	</div>
	
		<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "gender") ?></label>
		<div class="controls">
		<?php echo CHtml::activeDropDownList($member,"gender",array("M"=>"男","F"=>"女"));?>
		</div>
	</div>
	
	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "email") ?></label>
		<div class="controls">
		<?php echo CHtml::activeTextField($member,"email");?>
		<?php Utils::displayErr($member, "email")?>
		</div>
	</div>


	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "education") ?></label>
		<div class="controls">
		<?php echo CHtml::activeDropDownList($member,"education",array('Bachelor'=>'Bachelor','Master'=>'Master','PHD'=>'PHD','Diploma'=>'Diploma','Other'=>'Other'));?>
		</div>
	</div>
	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "phone") ?></label>
		<div class="controls">
		<?php echo CHtml::activeTextField($member,"phone");?>
		<?php Utils::displayErr($member, "phone")?>
		</div>
	</div>

	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "birth") ?></label>
		<div class="controls">
			<?php
		   $this->widget('zii.widgets.jui.CJuiDatePicker', array(
			    'name'=>'Member[birth]',
		   		'value' => '01/01/1985',
			    // additional javascript options for the date picker plugin
			    'options'=>array(
			        'showAnim'=>'fold',
		   			'changeYear' => 'true',
		   			
			    ),
			    'htmlOptions'=>array(
			        'style'=>'height:20px;'
			    ),
			));
		   ?> 
			<?php Utils::displayErr($member, "birth")?>
		</div>
	</div>
	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "description") ?></label>
		<div class="controls">
			<?php echo CHtml::activeTextArea($member, 'description',array("style"=>"width:300px;height:150px;")); ?> 
			<?php Utils::displayErr($member, "description")?>
		</div>
	</div>
	
	<div class="control-group">
		<label class='control-label'><?php echo CActiveForm::labelEx($member, "avatar") ?></label>
		<div class="controls">
			<?php
				echo CHtml::image(Utils::getImageUrlById("avatar", "", $member->id),"avatar",array('class'=>"thumbnail"));
			?>
			<br/><br/>
			<?php echo CHtml::activeFileField($member, 'avatar'); ?> 
			<?php Utils::displayErr($member, "avatar")?>
		</div>
	</div>	
 
	<div class="form-actions">
		<input type="submit" value="完成" class="btn btn-primary">
	</div>
</fieldset>
	<?php echo CHtml::endForm(); ?>

